home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / GCC257S5.ZIP / src / gcc-257 / news < prev    next >
Text File  |  1993-12-12  |  11KB  |  307 lines

  1. Noteworthy change in GCC version 2.5.7:
  2.  
  3. This release only fixes a few bugs, one of which was causing bootstrap
  4. compare errors on some systems.
  5.  
  6. Noteworthy change in GCC version 2.5.6:
  7.  
  8. A few backend bugs have been fixed, some of which only occur on one
  9. machine.
  10.  
  11. The C++ compiler in 2.5.6 includes:
  12.  
  13.  * fixes for some common crashes
  14.  * correct handling of nested types that are referenced as `foo::bar'
  15.  * spurious warnings about friends being declared static and never
  16.    defined should no longer appear
  17.  * enums that are local to a method in a class, or a class that's
  18.    local to a function, are now handled correctly.  For example:
  19.        class foo { void bar () { enum { x, y } E; x; } };
  20.        void bar () { class foo { enum { x, y } E; E baz; }; }
  21.  
  22. Noteworthy change in GCC version 2.5.5:
  23.  
  24. A large number of C++ bugs have been fixed.
  25.  
  26. The fixproto script adds prototypes conditionally on __cplusplus.
  27.  
  28. Noteworthy change in GCC version 2.5.4:
  29.  
  30. A bug fix in passing of structure arguments for the HP-PA architecture
  31. makes code compiled with GCC 2.5.4 incompatible with code compiled
  32. with earlier versions (if it passes struct arguments of 33 to 64 bits,
  33. interspersed with other types of arguments).
  34.  
  35. Noteworthy change in gcc version 2.5.3:
  36.  
  37. The method of "mangling" C++ function names has been changed.  So you
  38. must recompile all C++ programs completely when you start using GCC
  39. 2.5.  Also, GCC 2.5 requires libg++ version 2.5.  Earlier libg++
  40. versions won't work with GCC 2.5.  (This is generally true--GCC
  41. version M.N requires libg++ version M.N.)
  42.  
  43. Noteworthy GCC changes in version 2.5:
  44.  
  45. * There is now support for the IBM 370 architecture as a target.
  46. Currently the only operating system supported is MVS; GCC does not run
  47. on MVS, so you must produce .s files using GCC as a cross compiler,
  48. then transfer them to MVS to assemble them.  This port is not reliable
  49. yet.
  50.  
  51. * The Power PC is now supported.
  52.  
  53. * The i860-based Paragon machine is now supported.
  54.  
  55. * The Hitachi 3050 (an HP-PA machine) is now supported.
  56.  
  57. * The variable __GNUC_MINOR__ holds the minor version number of GCC, as
  58. an integer.  For version 2.5.X, the value is 5.
  59.  
  60. * In C, initializers for static and global variables are now processed
  61. an element at a time, so that they don't need a lot of storage.
  62.  
  63. * The C syntax for specifying which structure field comes next in an
  64. initializer is now `.FIELDNAME='.  The corresponding syntax for
  65. array initializers is now `[INDEX]='.  For example,
  66.  
  67.   char whitespace[256]
  68.     = { [' '] = 1, ['\t'] = 1, ['\n'] = 1 };
  69.  
  70. This was changed to accord with the syntax proposed by the Numerical
  71. C Extensions Group (NCEG).
  72.  
  73. * Complex numbers are now supported in C.  Use the keyword __complex__
  74. to declare complex data types.  See the manual for details.
  75.  
  76. * GCC now supports `long double' meaningfully on the Sparc (128-bit
  77. floating point) and on the 386 (96-bit floating point).  The Sparc
  78. support is enabled on on Solaris 2.x because earlier system versions
  79. (SunOS 4) have bugs in the emulation.
  80.  
  81. * All targets now have assertions for cpu, machine and system.  So you
  82. can now use assertions to distinguish among all supported targets.
  83.  
  84. * Nested functions in C may now be inline.  Just declare them inline
  85. in the usual way.
  86.  
  87. * Packed structure members are now supported fully; it should be possible 
  88. to access them on any supported target, no matter how little alignment
  89. they have.
  90.  
  91. * To declare that a function does not return, you must now write
  92. something like this (works only in 2.5):
  93.  
  94.     void fatal () __attribute__ ((noreturn));
  95.  
  96. or like this (works in older versions too):
  97.  
  98.     typedef void voidfn ();
  99.  
  100.     volatile voidfn fatal;
  101.  
  102. It used to be possible to do so by writing this:
  103.  
  104.     volatile void fatal ();
  105.  
  106. but it turns out that ANSI C requires that to mean something
  107. else (which is useless).
  108.  
  109. Likewise, to declare that a function is side-effect-free
  110. so that calls may be deleted or combined, write
  111. something like this (works only in 2.5):
  112.  
  113.     int computation () __attribute__ ((const));
  114.  
  115. or like this (works in older versions too):
  116.  
  117.     typedef int intfn ();
  118.  
  119.     const intfn computation;
  120.  
  121. * The new option -iwithprefixbefore specifies a directory to add to 
  122. the search path for include files in the same position where -I would
  123. put it, but uses the specified prefix just like -iwithprefix.
  124.  
  125. * Basic block profiling has been enhanced to record the function the
  126. basic block comes from, and if the module was compiled for debugging,
  127. the line number and filename.  A default version of the basic block
  128. support module has been added to libgcc2 that appends the basic block
  129. information to a text file 'bb.out'.  Machine descriptions can now
  130. override the basic block support module in the target macro file.
  131.  
  132. New features in g++:
  133.  
  134. * The new flag `-fansi-overloading' for C++.  Use a newly implemented
  135. scheme of argument matching for C++.  It makes g++ more accurately
  136. obey the rules set down in Chapter 13 of the Annotated C++ Reference
  137. Manual (the ARM).  This option will be turned on by default in a
  138. future release.
  139.  
  140. * The -finline-debug flag is now gone (it was never really used by the
  141.   compiler).
  142.  
  143. * Recognizing the syntax for pointers to members, e.g., "foo::*bar", has been
  144.   dramatically improved.  You should not get any syntax errors or incorrect
  145.   runtime results while using pointers to members correctly; if you do, it's
  146.   a definite bug.
  147.  
  148. * Forward declaration of an enum is now flagged as an error.
  149.  
  150. * Class-local typedefs are now working properly.
  151.  
  152. * Nested class support has been significantly improved.  The compiler
  153.   will now (in theory) support up to 240 nested classes before hitting
  154.   other system limits (like memory size).
  155.  
  156. * There is a new C version of the `g++' driver, to replace the old
  157.   shell script.  This should significantly improve the performance of
  158.   executing g++ on a system where a user's PATH environment variable
  159.   references many NFS-mounted filesystems.  This driver also works
  160.   under MS-DOS and OS/2.
  161.  
  162. * The ANSI committee working on the C++ standard has adopted a new
  163.   keyword `mutable'.  This will allow you to make a specific member be
  164.   modifiable in an otherwise const class.
  165.  
  166. Noteworthy GCC changes in version 2.4.4:
  167.  
  168.   A crash building g++ on various hosts (including m68k) has been
  169.   fixed.  Also the g++ compiler no longer reports incorrect
  170.   ambiguities in some situations where they do not exist, and
  171.   const template member functions are now being found properly.
  172.  
  173. Noteworthy GCC changes in version 2.4:
  174.  
  175. * On each target, the default is now to return short structures
  176. compatibly with the "usual" compiler on that target.
  177.  
  178. For most targets, this means the default is to return all structures
  179. in memory, like long structures, in whatever way is used on that
  180. target.  Use -freg-struct-return to enable returning short structures
  181. (and unions) in registers.
  182.  
  183. This change means that newly compiled binaries are incompatible with
  184. binaries compiled with previous versions of GCC.
  185.  
  186. On some targets, GCC is itself the usual compiler.  On these targets,
  187. the default way to return short structures is still in registers.
  188. Use -fpcc-struct-return to tell GCC to return them in memory.
  189.  
  190. * There is now a floating point emulator which can imitate the way all
  191. supported target machines do floating point arithmetic.
  192.  
  193. This makes it possible to have cross compilation to and from the VAX,
  194. and between machines of different endianness.  However, this works
  195. only when the target machine description is updated to use the new
  196. facilities, and not all have been updated.
  197.  
  198. This also makes possible support for longer floating point types.
  199. GCC 2.4 supports extended format on the 68K if you use `long double',
  200. for targets that have a 68881.  (When we have run time library
  201. routines for extended floating point, then `long double' will use
  202. extended format on all 68K targets.)
  203.  
  204. We expect to support extended floating point on the i386 and Sparc in
  205. future versions.
  206.  
  207. * Building GCC now automatically fixes the system's header files.
  208. This should require no attention.
  209.  
  210. * GCC now installs an unsigned data type as size_t when it fixes the
  211. header files (on all but a handful of old target machines).
  212. Therefore, the bug that size_t failed to be unsigned is fixed.
  213.  
  214. * Building and installation are now completely separate.
  215. All new files are constructed during the build process; 
  216. installation just copies them.
  217.  
  218. * New targets supported: Clipper, Hitachi SH, Hitachi 8300, and Sparc
  219. Lite.
  220.  
  221. * A totally new and much better Objective C run time system is included.
  222.  
  223. * Objective C supports many new features.  Alas, I can't describe them
  224. since I don't use that language; however, they are the same ones 
  225. supported in recent versions of the NeXT operating system.
  226.  
  227. * The builtin functions __builtin_apply_args, __builtin_apply and
  228. __builtin_return let you record the arguments and returned
  229. value of a function without knowing their number or type.
  230.  
  231. * The builtin string variables __FUNCTION__ and __PRETTY_FUNCTION__
  232. give the name of the function in the source, and a pretty-printed
  233. version of the name.  The two are the same in C, but differ in C++.
  234.  
  235. * Casts to union types do not yield lvalues.
  236.  
  237. * ## before an empty rest argument discards the preceding sequence
  238. of non-whitespace characters from the macro definition.
  239. (This feature is subject to change.)
  240.  
  241.  
  242. New features specific to C++:
  243.  
  244. * The manual contains a new section ``Common Misunderstandings with
  245. GNU C++'' that C++ users should read.
  246.  
  247. * #pragma interface and #pragma implementation let you use the same
  248. C++ source file for both interface and implementation.
  249. However, this mechanism is still in transition.
  250.  
  251. * Named returned values let you avoid an extra constructor call
  252. when a function result has a class type.
  253.  
  254. * The C++ operators <? and >? yield min and max, respectively.
  255.  
  256. * C++ gotos can exit a block safely even if the block has
  257. aggregates that require destructors.
  258.  
  259. * gcc defines the macro __GNUG__ when compiling C++ programs.
  260.  
  261. * GNU C++ now correctly distinguishes between the prefix and postfix
  262. forms of overloaded operator ++ and --.  To avoid breaking old
  263. code, if a class defines only the prefix form, the compiler
  264. accepts either ++obj or obj++, unless -pedantic is used.
  265.  
  266. * If you are using version 2.3 of libg++, you need to rebuild it with
  267. `make CC=gcc' to avoid mismatches in the definition of `size_t'.
  268.  
  269. Newly documented compiler options:
  270.  
  271. -fnostartfiles
  272.     Omit the standard system startup files when linking.
  273.  
  274. -fvolatile-global
  275.     Consider memory references to extern and global data items to
  276.     be volatile.
  277.  
  278. -idirafter DIR
  279.     Add DIR to the second include path.
  280.  
  281. -iprefix PREFIX
  282.     Specify PREFIX for later -iwithprefix options.
  283.  
  284. -iwithprefix DIR
  285.     Add PREFIX/DIR to the second include path.
  286.  
  287. -mv8
  288.     Emit Sparc v8 code (with integer multiply and divide).
  289. -msparclite
  290.     Emit Sparclite code (roughly v7.5).
  291.  
  292. -print-libgcc-file-name
  293.     Search for the libgcc.a file, print its absolute file name, and exit.
  294.  
  295. -Woverloaded-virtual
  296.     Warn when a derived class function declaration may be an error
  297.     in defining a C++ virtual function. 
  298.  
  299. -Wtemplate-debugging
  300.     When using templates in a C++ program, warn if debugging is
  301.     not yet fully available.
  302.  
  303. +eN
  304.     Control how C++ virtual function definitions are used
  305.     (like cfront 1.x).
  306.  
  307.